eventcontrollermotion: Notify by pspec
authorTimm Bäder <mail@baedert.org>
Sun, 29 Nov 2020 08:25:46 +0000 (09:25 +0100)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 30 Nov 2020 14:22:49 +0000 (09:22 -0500)
gtk/gtkeventcontrollermotion.c

index 8a9a6237658b3b3c266c6eb6d3b6aef5883787bb..86c38c1048da92994849f97044117898d014b0ae 100644 (file)
@@ -133,12 +133,12 @@ update_pointer_focus (GtkEventController    *controller,
   if (motion->is_pointer != is_pointer)
     {
       motion->is_pointer = is_pointer;
-      g_object_notify (G_OBJECT (motion), "is-pointer");
+      g_object_notify_by_pspec (G_OBJECT (motion), props[PROP_IS_POINTER]);
     }
   if (motion->contains_pointer != contains_pointer)
     {
       motion->contains_pointer = contains_pointer;
-      g_object_notify (G_OBJECT (motion), "contains-pointer");
+      g_object_notify_by_pspec (G_OBJECT (motion), props[PROP_CONTAINS_POINTER]);
     }
   g_object_thaw_notify (G_OBJECT (motion));